package fy.input.sql;

import java.util.ArrayList;
import java.util.List;

class MySQLSetBean {
	private String name;
	private String description;
	private String errorMsg;
	private String nullMsg;
	private String database;
	private String fieldName;

	private List<String> sqlList;

	public MySQLSetBean(){}
	
	public MySQLSetBean(String name, String description, String errorMsg,
			String nullMsg, String database,String fieldName) {
		this.name = name;
		this.description = description;
		this.errorMsg = errorMsg;
		this.nullMsg = nullMsg;
		this.database = database;
		this.fieldName = fieldName;
	}
	
	public MySQLSetBean(String name, String discription) {
		this.name = name;
		this.description = discription;
	}
	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String repeatFieldName) {
		this.fieldName = repeatFieldName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String discription) {
		this.description = discription;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public String getNullMsg() {
		return nullMsg;
	}

	public void setNullMsg(String nullMsg) {
		this.nullMsg = nullMsg;
	}

	public String getDatabase() {
		return database;
	}

	public void setDatabase(String database) {
		this.database = database;
	}

	public List<String> getSqlList() {
		return sqlList;
	}

	public void setSqlList(List<String> sqlList) {
		this.sqlList = sqlList;
	}

	public void addSql(String sql) {
		if (this.sqlList == null) {
			this.sqlList = new ArrayList<String>();
		}
		this.sqlList.add(sql);
	}
}
